from src.com.bsjs.util.base_util import BaserUtil

tmp_dict={
  "YJCS": "F-B,S-Y",
  "WGXH": "GJ000001",
  "ZXSZRQGD": "-",
  "BZGD": "PP26",
  "TSYQ": "-",
  "ZXSZRQDZ": "-",
  "JZGLYQ": "积载类10。与含有氯酸盐或高氯酸盐的C型爆破炸药 UN 0083\"远离\"。\"远离\"铅及其化合物。",
  "BZDZ": "P112(a)、(b)或(c)",
  "HWTX": "物质。",
  "XL": "FFF",
  "FLB1": "-",
  "BZL": "-",
  "ZWMC": "苦味酸铵",
  "JZL": "10",
  "UNNO": "0004",
  "YWMC": "AMMOUIUM PICRATE",
  "WXLB": "1.1D"
}

this = BaserUtil()
json_str=this.urlencode(this.obj2json(tmp_dict))
print(json_str)

print(this.json2obj(this.urldecode(json_str)))
